package com.zrt.dao;

import com.zrt.domain.Author;
import com.zrt.domain.Citation;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper

public interface CitationDao {
    //@Insert("insert into testparsedb.citation values (#{id},#{body})")
    int insert(Citation citation);

    @Select("SELECT * FROM  testparsedb.a_r ,testparsedb.citation c  WHERE a_r.cid = c.id  AND a_r.aid = #{aid}")
     List<Citation> findByAid(String aid);
}

